<div class="form-inline pull-right">
<input class="form-control" type="text" placeholder="请输入手机号" name="search" [(ngModel)]="searchData">
<button class="btn btn-default" (click)="search()">检索</button>
<button class="btn btn-default" (click)="reset()">重置</button>
</div>
<div class="table-responsive">
  <table class="table">
    <thead>
      <tr>
        <th>姓名</th>
        <th>手机号</th>
        <th>登记时间</th>
        <th>QQ号</th>
        <th>地址</th>
      </tr>
    </thead>
    <tbody>
      <tr *ngFor="let item of agentList">
        <td>{{item.fullname}}</td>
        <td>{{item.mobile}}</td>
        <td>{{item.created_at}}</td>
        <td>{{item.qq}}</td>
        <td>{{item.province.name}}{{item.city.name}}</td>
      </tr>
    </tbody>
  </table>
  <div class="text-center">
    <pagination (pageChanged)="pageChanged($event)" [totalItems]="totalItems" [(ngModel)]="currentPage" [itemsPerPage]="itemsPerPage" [maxSize]="5"
                previousText="&lsaquo;" nextText="&rsaquo;" firstText="&laquo;" lastText="&raquo;" [boundaryLinks]="true" class="pagination-sm"></pagination>
  </div>
</div>

